﻿import QtQuick 2.0

Image{
    id: body
    source: ""

    property alias rotationBody: rotationBody
    property bool isShunYi: true

    transform: Rotation{
        id: rotationBody
        axis.x: 0
        axis.y: 0
        axis.z: 1
        origin.x: body.width/2
        origin.y: body.height/2
    }

    Behavior on x{
        NumberAnimation{duration: body.isShunYi?0:window.speed}
    }
    Behavior on y{
        NumberAnimation{duration: body.isShunYi?0:window.speed}
    }
}

